import Mock from 'mockjs'
import {param2Obj} from '@/utils'

export default {
  getAdDate: config => {

    return {
      "data":{
        "data": {
          "playSuccess": Mock.Random.natural(1000,10000),
          "playFail": Mock.Random.natural(10,50),
          "active": Mock.Random.natural(1000,2000),
          "monthActive": Mock.Random.natural(300000,600000),
          "pic": Mock.Random.natural(1000,2000),
          "video": Mock.Random.natural(1000,2000),
          "platformChannel":Mock.Random.natural(1000,2000),
          "playTotalCount":Mock.Random.natural(1000,2000),
          "platformBusiness":1000,
        }
      }

    }
  },
  getAdTable: config => {

    return {
      "data":{
        "data":[ {
          "city":"福州市",
          "count":16,
          "deviceModel":"devicemodel",
          "deviceSn":"devicesn",
          "mac":"mac",
          "merchantName":"商户名称",
          "province":"福建省",
          "time":"2019-02-28"
        },{
          "city":"福州市",
          "count":15,
          "deviceModel":"devicemodel",
          "deviceSn":"devicesn",
          "mac":"mac",
          "merchantName":"商户名称",
          "province":"福建省",
          "time":"2019-02-28"
        }]
      }

    }
  },

}
